package gs.android.videopokercollection;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class GameModeActivity extends Activity{
	private Button jacks, deuces, joker;
	
	@Override
	public void onCreate(Bundle savedInstance) {
		super.onCreate(savedInstance);
		setContentView(R.layout.gamemode);
		
		jacks = (Button) findViewById(R.id.btnJacksOrBetter);
		jacks.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(v.getContext(), VideoPokerActivity.class);
				intent.putExtra("gamemode", VideoPokerActivity.JACKSORBETTER);
				startActivity(intent);
			}
		});
		
		deuces = (Button) findViewById(R.id.btnDeucesWild);
		deuces.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(v.getContext(), VideoPokerActivity.class);
				intent.putExtra("gamemode", VideoPokerActivity.DEUCESWILD);
				startActivity(intent);
			}
		});
		
		joker = (Button) findViewById(R.id.btnJokerWild);
		joker.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(v.getContext(), VideoPokerActivity.class);
				intent.putExtra("gamemode", VideoPokerActivity.JOKERWILD);
				startActivity(intent);
			}
		});
	}
}
